/*
 * @(#)ShopConfig.java
 *
 * Copyright 2011-9-30 北龙中网(北京)科技有限责任公司, Inc. All rights reserved.
 */
package cn.shangjia.shop.config;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @description 属性配置
 * @author  zzjin
 * @version 
 * @date 2011-9-30 上午9:18:56
 */
public class ShopConfig {
	
	private Boolean isSolr; //是否 开启solr列表
	
	private String domain; //应用的当前域
	private String statPath;//统计地址
	
	private String sessionDomain; //session 域
	private String ssoPostUrl; //单点登陆提交地址
	
	private int visitTopNum; //访问量最高的 缓存多少条?
	
	private int productCurrentPagesize; //供应产品默认每页显示数量
	private int buyCurrentPagesize; //求购产品默认每页显示数量
	private int newsCurrentPagesize; //商家动态默认每页显示数量
	private int newsCommentPagesize; //企业动态 平路每页显示数量
	private int videoCurrentPagesize; //商铺视频默认每页显示数量
	
	private int newsCommentCachePageSize; //企业动态 评论缓存页数
	
	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public String getStatPath() {
		return statPath;
	}

	public void setStatPath(String statPath) {
		this.statPath = statPath;
	}

	public void setProductCurrentPagesize(int productCurrentPagesize) {
		this.productCurrentPagesize = productCurrentPagesize;
	}

	public int getProductCurrentPagesize() {
		return productCurrentPagesize;
	}

	public void setBuyCurrentPagesize(int buyCurrentPagesize) {
		this.buyCurrentPagesize = buyCurrentPagesize;
	}

	public int getBuyCurrentPagesize() {
		return buyCurrentPagesize;
	}

	public void setNewsCurrentPagesize(int newsCurrentPagesize) {
		this.newsCurrentPagesize = newsCurrentPagesize;
	}

	public int getNewsCurrentPagesize() {
		return newsCurrentPagesize;
	}

	public int getNewsCommentPagesize() {
		return newsCommentPagesize;
	}

	public void setNewsCommentPagesize(int newsCommentPagesize) {
		this.newsCommentPagesize = newsCommentPagesize;
	}

	public int getVisitTopNum() {
		return visitTopNum;
	}

	public void setVisitTopNum(int visitTopNum) {
		this.visitTopNum = visitTopNum;
	}

	public String getSessionDomain() {
		return sessionDomain;
	}

	public void setSessionDomain(String sessionDomain) {
		this.sessionDomain = sessionDomain;
	}
	
	public String getSsoPostUrl() {
		return ssoPostUrl;
	}

	public void setSsoPostUrl(String ssoPostUrl) {
		this.ssoPostUrl = ssoPostUrl;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

	public Boolean getIsSolr() {
		if (isSolr == null)
			return Boolean.FALSE;
		return isSolr;
	}

	public void setIsSolr(Boolean isSolr) {
		this.isSolr = isSolr;
	}

	public void setVideoCurrentPagesize(int videoCurrentPagesize) {
		this.videoCurrentPagesize = videoCurrentPagesize;
	}

	public int getVideoCurrentPagesize() {
		return videoCurrentPagesize;
	}

	public int getNewsCommentCachePageSize() {
		return newsCommentCachePageSize;
	}

	public void setNewsCommentCachePageSize(int newsCommentCachePageSize) {
		this.newsCommentCachePageSize = newsCommentCachePageSize;
	}
	
}
